<?php
/**
 * Created by PhpStorm.
 * User: yyq
 * Date: 2017/3/28
 * Time: 19:43
 */

namespace Wap\Controller;


use System\Model\DocumentsModel;
use Think\Controller;

class UserDealController extends Controller
{
    private $documents_model;

    public function __construct()
    {
        parent::__construct();
        $this->documents_model = new DocumentsModel();
    }

    public function contentDisplay() {
        $id = I('get.id');
        $info = $this->documents_model->find($id);

        $this->assign('content', $info['content']);
        $this->display();
    }
}